home *** CD-ROM | disk | FTP | other *** search
/ Tux Racer / Tux Racer.iso / program files / Sunspire Studios / Tux Racer / courses / swiss / trophy.tcl < prev    next >
Encoding:
Text File  |  2001-09-09  |  1.4 KB  |  43 lines

  1. objcreate {s_model_obj} {:models:trophy} \
  2.     {-filename} {trophy_final_racing.obj.strip}
  3.  
  4. objcreate s_texture :textures:object:trophy \
  5.     -repeatable 1 -filename trophy_swiss.png
  6.  
  7. objcreate s_texture :textures:object:trophy_swiss_env \
  8.     -repeatable 1 -filename trophy_swiss_env.png
  9.  
  10. objcreate {s_object3d} {:objects:trophy} \
  11.     {-drawable_model} {:models:trophy} \
  12.     {-texture} {:textures:object:trophy} \
  13.     {-envmap_alpha_texture} {:textures:object:trophy_swiss_env} \
  14.     {-envmap_texture} {:textures:trophy:trophy_env} \
  15.     {-cubemap_texture} {:textures:trophy:trophy_cube} \
  16.     {-envmap_alpha} {0.5}
  17.  
  18. objcreate {s_container} {:anim:course}
  19.  
  20. objcreate {s_anim_curve} {:anim:course:trophy_spin} \
  21.     {-keyframes} {{( 0.0000, 0.0000, 36.0000, 36.0000 ) } {( 10.0000, 360.0000, 36.0000, 36.0000 ) }} \
  22.     {-loop} {1}
  23.  
  24.  
  25. objcreate {s_sgnode} {:trophy:trans} \
  26.     {-position} {0 -2.2 -5} \
  27.     {-rotation} {20.0 0.0 0.0}
  28.  
  29. objcreate {s_sganim} {:trophy:trans:anim} \
  30.     {-bound_animations} {{( :anim:course:trophy_spin , y_rotation , 1 )}} \
  31.     {-position} {0.0 0.0 0.0}
  32.  
  33. objcreate {s_object3dinst} {:trophy:trans:anim:obj} \
  34.     {-object3d} {:objects:trophy}
  35.  
  36. objcreate {s_container} {:actions:course}
  37.  
  38. objcreate {s_action_anim} {:actions:course:trophy} \
  39.     {-root_anim} {:anim:course:trophy_spin} \
  40.     {-root_object} {:trophy:trans:anim}
  41.  
  42. objcall :actions:course:trophy start
  43.